#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main()
{
    int a = clock();
    int arr[10] = {1,2,3,4,5,6,7,8,9,10};
    //printf("%zd",sizeof(arr)/sizeof(arr[0]));
    for(int i = 0;i < sizeof(arr)/sizeof(arr[0]) - 1;i++)
    {
        for(int j = 1; j < sizeof(arr)/sizeof(arr[0]) - i; j++)
        {
            int tmp;
            if(arr[j] > arr[j-1])
            {
                tmp = arr[j];
                arr[j] = arr[j-1];
                arr[j-1] = tmp;
            }
        }
    }
    for(int i = 0;i < sizeof(arr)/sizeof(arr[0]);i++)
    {
        printf("%d\n",arr[i]); 
    }   
    int b = clock();
        printf("%d\n",b-a); 
    return 0;
}

